﻿using EkStudio.com.bean.xml.reflection;
using EkStudio.com.bean.xml.RootInterface;
using System;

namespace EkStudio.com.bean.xml.WorkFlow.Node
{
    /// <summary>
    /// 审批通过时执行
    /// </summary>
    public class WflowNodeItemAOutBand:BillObjectInterface
    {
        private bool enable = false;
        private WflowExpressionElement condition = null;
        private WflowMessageElement message = null;

        [Xml]
        public bool Enable
        {
            get { return enable; }
            set { enable = value; }
        }
        [XmlElement]
        public WflowExpressionElement Condition
        {
            get { return condition; }
            set { condition = value; }
        }
        [XmlElement]
        public WflowMessageElement Message
        {
            get { return message; }
            set { message = value; }
        }



        [XmlTransient]
        public object ParentBean
        {
            get
            {
                return null;
            }

            set
            {
                
            }
        }

        public object Clone()
        {
            WflowNodeItemAOutBand clone = new WflowNodeItemAOutBand();
            clone.Enable = enable;
            if (condition != null) clone.Condition = condition.Clone() as WflowExpressionElement;
            if (message != null) clone.Message = message.Clone() as WflowMessageElement;
            return clone;
        }
    }
}
